package com.open.capacity.salary.dao;

import com.open.capacity.salary.entity.GzRecordTax;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 工资系统扣税记录
 *
 * @author
 * @email
 * @date 2021-08-09 14:19:25
 */
@Mapper
public interface GzRecordTaxDao {

    int save(GzRecordTax gzRecordTax);

    int update(GzRecordTax gzRecordTax);

    int delete(String id);

    int deleteByZtId(@Param("companyId") String companyId, @Param("ztId") String ztId, @Param("currentMonth") String currentMonth);

    GzRecordTax findByUserId(@Param("companyId") String companyId, @Param("ztId") String ztId, @Param("userId") String userId, @Param("currentMonth") String currentMonth);

    GzRecordTax findById(String id);

    List<GzRecordTax> findAll(Map<String, Object> params);

}
